package com.mihoyo.basic.service;

import com.mihoyo.basic.query.BaseQuery;
import com.mihoyo.basic.utils.PageList;

import java.util.List;

public interface IBaseService<T> {
    List<T> findAll();

    T findById(Long id);

    void update(T t);

    void add(T t);

    void delete(Long id);

    PageList<T> queryByPage(BaseQuery baseQuery);

    void batchDelete(List<Long> ids);
}
